﻿<div class="welcome-page">
	<div class="row page-header">
		<div class="col-sm-10">
			<h1>
				<img class="icon" src="~/icon.jpg">
				Welcome to IdentityServer4
				@*<small>(build {version})</small>*@
			</h1>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-8">
			<p>
				IdentityServer publishes a
				<a href="~/.well-known/openid-configuration">discovery document</a>
				where you can find metadata and links to all the endpoints, key material, etc.
			</p>
		</div>
		<div class="col-sm-8">
			<p>
				Click <a href="~/grants">here</a> to manage your stored grants.
			</p>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-8">
			<p>
				Here are links to the
				<a href="https://github.com/identityserver/IdentityServer4">source code repository</a>,
				and <a href="https://github.com/identityserver/IdentityServer4.Samples">ready to use samples</a>.
			</p>
		</div>
	</div>
	<p>
		@if (User.Identity.IsAuthenticated)
		{
			<span id="status">You are currently logged in.</span>

			<h2>Claims</h2>
			<table>
				<thead>
					<tr>
						<th>Type</th>
						<th>Value</th>
					</tr>
				</thead>
				<tbody>
					@foreach (var c in User.Identities.First().Claims)
					{
						<tr>
							<td>@c.Type</td>
							<td>@c.Value</td>
						</tr>
					}
				</tbody>
			</table>
		}
		else
		{
			<span id="status">You are currently not logged in.</span>
		}
	</p>

</div>
